package com.swinboo.im.api;

import com.huang.entity.result.HCollectionResult;
import com.huang.entity.result.HStringResult;
import com.swinboo.im.entity.param.AddContactParam;
import com.swinboo.im.entity.param.ContactListParam;
import com.swinboo.im.entity.param.RemoveContactParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Swinboo
 * @date 2022-03-19 19:55
 * @description:
 */
public interface EMContactApi {
    /**
     * 添加联系人
     *
     * @param addContactParam
     * @return
     */
    @PostMapping("/im/contact/add")
    HStringResult<Boolean> add(@RequestBody AddContactParam addContactParam);

    /**
     * 删除联系人
     *
     * @param removeContactParam
     * @return
     */
    @PostMapping("/im/contact/remove")
    HStringResult<Boolean> remove(@RequestBody RemoveContactParam removeContactParam);

    /**
     * 获取联系人列表
     *
     * @param contactListParam
     * @return
     */
    @PostMapping("/im/contact/list")
    HCollectionResult<String> list(@RequestBody ContactListParam contactListParam);
}
